$.ajaxSetup({
    complete: function (xhr) {
        const resp = xhr.responseJSON;
        if (resp.code == 403) {
            layui.use("layer", function () {
                layui.layer.msg("你没有登录，请先登录", {
                    icon: 2,
                    time: 1000,
                    end: function () {
                       window.parent.location.href = "/login.html"
                    }
                })
            })
        }
    }
})